<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Property>" %>
<%@ Import Namespace="Vit.CMS" %>
<%@ Import Namespace="Vit.CMS.Data" %>
<fieldset>
    <legend><%= Html.Localize("Properties")%></legend>
    <table>
        <tr>
            <td colspan="2" align="right">
                <a href='/CMS/Interface/DeleteProperty/<%= this.Mode.ID %>'><%= Html.Localize("Remove") %></a>
                <%= Html.Hidden("InterfaceId", this.ViewData["InterfaceId"]) %>
                <%= Html.Hidden("ID", this.Model.ID) %>
            </td>
        </tr>
        <tr>
            <td><%= Html.LabelFor(o => o.Name) %></td>
            <td>
                <%= Html.EditorFor(o => o.Name) %>
                <%= Html.ValidationMessage("Name")%>
            </td>
        </tr>
        <tr>
            <td><%= Html.LabelFor(o => o.Description) %></td>
            <td>
                <%= Html.EditorFor(o => o.Description)%>
                <%= Html.ValidationMessage("Description")%>
            </td>
        </tr>
        <tr>
            <td><%= Html.LabelFor(o => o.DataType) %></td>
            <td>
                <%= Html.EditorFor(o => o.DataType)%>
                <%= Html.ValidationMessage("DataType")%>
            </td>
        </tr>
    </table>
    <%= Html.EditorFor(o=>o.Input) %>
    <%= Html.EditorForMany<Property, Vit.Web.Validator.IValidator>(o=>o.Validators) %>
    <%= Html.EditorForMany<Property, Vit.CMS.Data.Attribute>(o => o.Attributes)%>
</fieldset>
